<script setup>
import Menu from '@/components/menu/index.vue'
import Top from '@/components/top/index.vue'
</script>

<template>

  <div class="common-layout">
    <el-container>
      <el-aside style="height: 100%" width="300px">
        <!--  菜单组件-->
        <Menu/>

      </el-aside>
      <el-container>
        <el-header>
          <!--导航组件-->
          <Top/>
        </el-header>

        <el-main>
          <el-card class="main-conte" shadow="always">

            <!- 加载动态路由->
            <router-view></router-view>
          </el-card>


        </el-main>
      </el-container>
    </el-container>
  </div>


</template>

<style scoped>
.main-conte {
  /*  background-color: rgba(238, 238, 245, 0.5);*/
  border-radius: 5px; /*角度圆弧形*/
  margin-right: 10px; /*右边边距增加*/
  height: 755px;

}


.el-header {
  background-color: rgba(238, 238, 245, 0.5);
  height: 130px;
  transform: translateX(-20px); /*向左移动*/
}

.el-main {
  background-color: rgba(238, 238, 245, 0.5);
  overflow-x: hidden; /* 防止水平滚动 */
  overflow-y: hidden; /* 防止垂直滚动 */
  transform: translateX(-20px); /*向左移动*/

}

.common-layout {
  background-color: rgba(238, 238, 245, 0.5);
  height: 100%;
}

.el-container {
  height: 100%;
}

</style>